Stack: Fix copy-paste error
authorDaniel Boles <dboles@src.gnome.org>
Tue, 1 Aug 2017 18:18:39 +0000 (19:18 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 1 Aug 2017 18:18:39 +0000 (19:18 +0100)
This fixes Coverity CID 1452217.

gtk/gtkstack.c

index b77bde2cf6d966b3a186709dc58c084e0666a4a4..f64f763edac66d46f23cb9a024c8838db001a4d3 100644 (file)
@@ -2098,7 +2098,7 @@ gtk_stack_size_allocate (GtkWidget           *widget,
           if (valign == GTK_ALIGN_CENTER || valign == GTK_ALIGN_FILL)
             child_allocation.y = (allocation->height - child_allocation.height) / 2;
           else if (valign == GTK_ALIGN_END)
-            child_allocation.x = (allocation->height - child_allocation.height);
+            child_allocation.y = (allocation->height - child_allocation.height);
         }
 
       gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation, -1, &child_clip);